package com.android.fragmentdemo.roomdb
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import androidx.room.TypeConverters

@Entity(tableName = "pet")
@TypeConverters(value = [StringConverter::class])
data class Pet(
    @PrimaryKey
    @ColumnInfo(name = "idCard")
    var idCard: String,
    @ColumnInfo(name = "name")
    var name: String,
    @ColumnInfo("foods")
    var foods: MutableList<String>
)
